package cn.zhaosunny.soap.convertfactory

import io.reactivex.Flowable
import kotlinx.coroutines.flow.Flow
import java.lang.reflect.Method
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type

/**
 *
 * @author zhaoyang 2021/12/1
 */

internal class RxSoapConvertFactory {

//    fun <ResponseT> convert(method: Method, type: Type, resultT: String): Flowable<ResponseT> {
//         if(method.returnType is Flowable<*>){
//             if(method.genericReturnType is ParameterizedType){
//                 val type1 = (method.genericReturnType as ParameterizedType).actualTypeArguments[0]
//
//             }
//         }
//        return null
//    }
}

class FlowSoapConvertFactory {

//    fun <ResponseT> convert(method: Method, type: Type, resultT: String): Flow<ResponseT> {
//
//    }
}